package com.yike.order.service;

import com.yike.order.entity.RefundDetail;
import com.yike.order.param.RefundDetailPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 订单退款详情表 服务类
 *
 * @author Sakura
 * @since 2024-09-04
 */
public interface RefundDetailService extends BaseService<RefundDetail> {

    /**
     * 保存
     *
     * @param refundDetail
     * @return
     * @throws Exception
     */
    boolean saveRefundDetail(RefundDetail refundDetail) throws Exception;

    /**
     * 修改
     *
     * @param refundDetail
     * @return
     * @throws Exception
     */
    boolean updateRefundDetail(RefundDetail refundDetail) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteRefundDetail(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param refundDetailPageParam
     * @return
     * @throws Exception
     */
    Paging<RefundDetail> getRefundDetailPageList(RefundDetailPageParam refundDetailPageParam) throws Exception;

}
